home *** CD-ROM | disk | FTP | other *** search
- Set wmi = GetObject("winmgmts:").InstancesOf("Win32_CodecFile")
- Set MyFiles = CreateObject("Scripting.FileSystemObject")
- on error resume next
- If err.number<>0 then
- MsgBox "Die Windows Management Instrumentation (WMI) ist nicht installiert!" & VBCR & VBCR & "Sie k÷nnen es unter:" & VBCR & VBCR & "http://msdn.microsoft.com/msdn-files/027/001/576/Search.asp" & VBCR & VBCR & "kostenlos herunterladen (ca 6,5 MB)"
- WScript.Quit
- end if
- on error goto 0
-
- Set CodecTxt = MyFiles.CreateTextFile("c:\codec.txt", True)
- CodecTxt.WriteLine
- CodecTxt.WriteLine("Name" & vbTab & vbTab & "Hersteller " & vbTab & vbTab & "Beschreibung")
- CodecTxt.WriteLine
-
- For each Objekt in wmi
-
- Info1 = Objekt.FileName
- If len(Info1) < 8 Then
- Info1 = CStr(Info1 & " " & " " & " " & " ")
- Else Info1 = Info1
- End If
- Info3 = Objekt.Manufacturer
- Info2 = Objekt.Description
- If len(Info2) < 36 Then
- Info2 = CStr(Info2 & " ")
- Else Info2 = Info2
- End If
- CodecTxt.WriteLine(Info1 & " " & vbTab & Info2 & vbTab & Info3)
-
- Next
-
-